﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyMovieSystem
{
    [Serializable]
    /// <summary>
    /// 座位类
    /// </summary>
    public class Seat
    {
        /// <summary>
        ///座位ID
        /// </summary>
        public string SeatID { get; set; }
        /// <summary>
        /// 行
        /// </summary>
        public int Row { get; set; }
        /// <summary>
        /// 列
        /// </summary>
        public int Column { get; set; }
        /// <summary>
        /// 座位坐标
        /// </summary>
        public Point SeatPoint { get; set; }

        /// <summary>
        /// 座位情况
        /// 0:为空
        /// 1:不为空
        /// 2:选中状态
        /// 3:空白区域
        /// </summary>
        public int IsEmpty { get; set; }
        /// <summary>
        /// 座位背景图
        /// </summary>
        public Image SeatImag { get; set; }

        public Seat() 
        {
            SeatImag = Image.FromFile("image//null.png");
        }

        public Seat(string id, int row, int col, Point seatPoint,int isEmpty)
        {
            SeatImag = Image.FromFile("image//null.png");
            this.SeatID = id;
            this.Row = row;
            this.Column = col;
            this.SeatPoint = seatPoint;
            this.IsEmpty = IsEmpty;
        }
    }
}
